# -*- encoding=utf8 -*-
__author__ = "Simon"

from airtest.core.api import *
from poco.drivers.unity3d import UnityPoco
poco = UnityPoco()
using("../main.air")
import main

def gift2():
    #获取旋转后的分辨率
    x,y=device().get_current_resolution()
    sleep(2)
    main.sheet_entry(x,y)
    sleep(2)
    main.gift_entry(x,y)
    sleep(2)
    touch([0.84*x,0.88*y])
    sleep(2)
    main.cilck_blue_ok()
    sleep(2)
    main.cilck_white_ok()
    sleep(2)
    main.cancel()
    sleep(2)
    main.sheet_entry(x,y)
    sleep(2)